package com.flyinzhen.customer.dto.input;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value = "SmsSendInput", description = "短信发送输入类")
public class SmsSendInput implements Serializable {

	private static final long serialVersionUID = 1L;

    @NotBlank
    @ApiModelProperty(value = "手机号", required = true)
    private String phone;

    @NotBlank
    @ApiModelProperty(value = "机构编码", required = true)
    private String orgCode;

	@NotBlank
    @ApiModelProperty(value = "短信模板", required = true)
    private String template;

    @ApiModelProperty(value = "短信参数")
    private String[] params;

    public SmsSendInput(@NotBlank String phone, @NotBlank String template, String[] params) {
        this.phone = phone;
        this.template = template;
        this.params = params;
    }
}
